package org.example.platform.design.factorymethod;

public class Factory {


    public static LeiFengVo create(String type) {
        LeiFengVo leiFengVo =null;
        switch (type){
            case "学雷锋":
                leiFengVo = new XueLeiFengVo();
                break;
            case "志愿者":
                leiFengVo = new ZhiYuanZheVo();
                break;
        }
        return leiFengVo;
    }


}
